package com.qqt.csr.order.enums;

import com.qqt.csr.message.enums.ActionType;
import com.qqt.csr.message.enums.MessageType;
import com.qqt.csr.message.event.Template;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: yang hao
 * @Date: 2024/12/13 14:59
 * @Description: 工单事件类型
 **/
@Getter
@AllArgsConstructor
public enum WorkOrderTemplateType implements Template {

    SET_UP_PROCESSOR("%s设置你为处理人", ActionType.POP_UP_WINDOW_PLUS_JUMP, MessageType.TEXT),

    RECEIVED_WORK_ORDER("%s认领了你的工单", ActionType.POP_UP_WINDOW_PLUS_JUMP, MessageType.TEXT),

    COMPLETED_WORK_ORDER("%s完成了你的工单", ActionType.POP_UP_WINDOW_PLUS_JUMP, MessageType.TEXT),

    SUSPENDED_WORK_ORDER("%s挂起了你的工单", ActionType.POP_UP_WINDOW_PLUS_JUMP, MessageType.TEXT),

    RECOVERED_WORK_ORDER("%s取消挂起了你的工单", ActionType.POP_UP_WINDOW_PLUS_JUMP, MessageType.TEXT),

    REOPENED_WORK_ORDER("%s重新打开了你的工单", ActionType.POP_UP_WINDOW_PLUS_JUMP, MessageType.TEXT),

    EDITED_WORK_ORDER("%s编辑了你的工单", ActionType.POP_UP_WINDOW_PLUS_JUMP, MessageType.TEXT),

    DELETE_WORK_ORDER("%s删除了你的工单", ActionType.ONLY_POP_UPS, MessageType.TEXT),

    COMMENT_WORK_ORDER("%s留言了你的工单", ActionType.POP_UP_WINDOW_PLUS_JUMP, MessageType.TEXT),

    CHANGE_PROCESSOR_PERMISSION("%s变更了你的工单处理人权限", ActionType.POP_UP_WINDOW_PLUS_JUMP, MessageType.TEXT),

    ;

    /**
     * 内容模板
     */
    private final String contentTemplate;

    /**
     * 动作类型
     */
    private final ActionType actionType;

    /**
     * 消息类型
     */
    private final MessageType messageType;
}
